<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // js语句
    </script>


    <!-- 引入外部js -->
    <script src="../js/1.js">不能写代码</script>



</head>
<body>

    <div style="" onclick="alert(666)">;</div>

    js的三种引入方式
        内部js  <script></script>
        外部js  <script src="路径"></script>
        行内js  直接在标签上写js代码
    
</body>
</html>